package com.huy.study.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author huy
 * @since 2024-04-14
 */
@TableName("t_user")
public class UserEntity {

    /**
     * 编号
     */
    @TableField("c_bh")
    private String bh;

    /**
     * 姓名
     */
    @TableField("c_name")
    private String name;

    /**
     * 登录名
     */
    @TableField("c_loginId")
    private String loginId;

    /**
     * 创建时间
     */
    @TableField(value = "dt_cjsj", fill = FieldFill.INSERT)
    private LocalDateTime cjsj;

    @TableField(value = "dt_zhxgsj", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime zhxgsj;

    public String getBh() {
        return bh;
    }

    public void setBh(String bh) {
        this.bh = bh;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getLoginId() {
        return loginId;
    }

    public void setLoginId(String loginId) {
        this.loginId = loginId;
    }

    public LocalDateTime getCjsj() {
        return cjsj;
    }

    public void setCjsj(LocalDateTime cjsj) {
        this.cjsj = cjsj;
    }

    public LocalDateTime getZhxgsj() {
        return zhxgsj;
    }

    public void setZhxgsj(LocalDateTime zhxgsj) {
        this.zhxgsj = zhxgsj;
    }

    @Override
    public String toString() {
        return "UserEntity{" +
            "bh = " + bh +
            ", name = " + name +
            ", loginId = " + loginId +
            ", cjsj = " + cjsj +
            ", zhxgsj = " + zhxgsj +
        "}";
    }
}
